from django.db import models

from apps.index.models import IndexUser


class ListInfo(models.Model):
    name = models.CharField(max_length=255,verbose_name='姓名')
    job = models.CharField(max_length=255,verbose_name='职业')
    age = models.IntegerField(verbose_name='年龄')
    sex = models.CharField(max_length=10,verbose_name='性别')
    have = models.CharField(max_length=255,verbose_name='是否锻炼')
    play = models.CharField(max_length=255,verbose_name='是否喜欢外出')
    user = models.ForeignKey(IndexUser, verbose_name='所属用户')


    class Meta:
        db_table = 'list_info'
        verbose_name = '个人信息'
        verbose_name_plural = verbose_name